package com.example.config;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@Log4j2
@RestController
@RefreshScope
public class AccountConfig {

    /*@Value("${redis.host}")
    private String host;
    @Value("${redis.pwd}")
    private String pwd;
    @GetMapping("getAccount")
    public Map<String,Object> getAccount(){
        Map<String,Object> account = new HashMap<>();
        log.info("host=="+host+",name=="+pwd);
        account.put("id",host);
        account.put("name",pwd);
        log.info("---------获取配置的客户信息account{}----", account);
        return account;
    }*/
}